<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "chargeTypes".
 *
 * @property int $id
 * @property string $text
 * @property int $pid
 * @property int $ctime
 */
class ChargeTypes extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'chargeTypes';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['text', 'pid', 'ctime'], 'required'],
            [['pid', 'ctime'], 'integer'],
            [['text'], 'string', 'max' => 32],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'text' => 'Text',
            'pid' => 'Pid',
            'ctime' => 'Ctime',
        ];
    }
}
